<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%flow_pmp_adspace_map}}".
 *
 * @property integer $id
 * @property integer $flow_pmp_guid
 * @property integer $adspace_guid
 * @property string $adspace_title
 * @property integer $adspace_class_id
 * @property integer $status
 * @property integer $creator
 * @property string $created_at
 * @property string $modified_at
 */
class FlowPmpAdspaceMap extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%flow_pmp_adspace_map}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['flow_pmp_guid', 'adspace_guid', 'adspace_title'], 'required'],
            [['flow_pmp_guid', 'adspace_guid', 'adspace_class_id', 'status', 'creator'], 'integer'],
            [['created_at', 'modified_at'], 'safe'],
            [['adspace_title'], 'string', 'max' => 100]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'flow_pmp_guid' => 'Flow Pmp Guid',
            'adspace_guid' => 'Adspace Guid',
            'adspace_title' => 'Adspace Title',
            'adspace_class_id' => 'Adspace Class ID',
            'status' => 'Status',
            'creator' => 'Creator',
            'created_at' => 'Created At',
            'modified_at' => 'Modified At',
        ];
    }
}
